<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
 <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
 	<title>ichange - 关注</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <link href="./skin/fans_files/relationship.css" rel="stylesheet"
			type="text/css">
  <link href="./skin/fans_files/relationship.css" rel="stylesheet"
			type="text/css">
		<link href="./public/mycss.css" rel="stylesheet" type="text/css">
			
		<jsp:include page="../skin/jsp/files.jsp"></jsp:include>
	
				
	

	




</head>

	<body>
	 	<jsp:include page="header.jsp"></jsp:include>

<br/><br/>
	

		<div id="content">
			<div id="left">
				<div id="left_bar">
					<h3>
						关注 / 粉丝
					</h3>
					<ul class="self">
						<li>
							<a href="buddy/follows?master.id=${master.id }" 
							
	<s:if test="'follows'==type">
	class="nav_click"
     </s:if>

							> 关注</a>
						</li>
						<li>
							<a href="buddy/fans?master.id=${master.id }"
							<s:if test="'fans'==type">
	class="nav_click"
     </s:if>
							> 粉丝 </a>
						</li>
						
						
					</ul>
				</div>
				<!--end left_bar-->
			</div>
			<!--end left-->
			<div id="middle">
				<div id="main_content" class="load-follow">
					<h2>
						<s:if test="'find'==type">
						 带有 <a href="itemsProfileAction.action?userId=${master.id }">${master.name}</a> 的 用户名
						</s:if>
						<s:else>
						<a href="itemsProfileAction.action?userId=${master.id}">${master.name}</a> 的 ${'fans'==type?'粉丝':'关注' }
						</s:else>
					</h2>
					
					<form action="buddy/find" method="get">
						<div class="search">
							<input type="text" class="search_text fl" placeholder="输入昵称"
								name="master.name" value="${'fans'==type||'follows'==type?'':master.name }">
							<input type="submit" value="" class="search_btn fr">
						</div>
					</form>
					
					
					
					
					
					
					
					
					
					
					        <s:iterator value="pager.data">
  		 
  		 
  		 
  		 
  		 					
					<div class="follow-item follow-item8079 follow-item-first">
						<div class="follow-img fl">
							<a href="<s:property value="id"/>"><img
									src="<s:property value="photo"/>"
									width="40" height="40">
							</a>
						</div>
						<div class="follow-info">
							<p class="user-baseinfo">
								<a href="<s:property value="photo"/>"><s:property value="name"/></a>
							</p>
							
							
							
				<s:if test="'fans'==type">
	    			
	    			<s:if test="both">
	    				已互听，<s:a href="buddy/remove">取消</s:a>
	    				<form action="buddy/remove" method="get"
								class="follow_form" id="remove_follow" style="">
								<div class="cancel-follow">
									<!-- 取消按钮 -->
									<span>已关注</span>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input class="cancel-follow-btn follow_action_btn"
										type="submit" value="取消">
								</div>
						 </form>
						 <form action="buddy/add" method="get"
								class="follow_form" id="add_follow" style="display: none;">
								<p>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input type="submit" class="follow-btn follow_action_btn"
										value="+加关注">
									<!-- 关注按钮 -->
								</p>
						</form>
	    			</s:if>
	    			<s:else>
	    			<form action="buddy/remove" method="get"
								class="follow_form" id="remove_follow" style="display: none;">
								<div class="cancel-follow">
									<!-- 取消按钮 -->
									<span>已关注</span>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input class="cancel-follow-btn follow_action_btn"
										type="submit" value="取消">
								</div>
						 </form>
	    				<form action="buddy/add" method="get"
								class="follow_form" id="add_follow" style="">
								<p>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input type="submit" class="follow-btn follow_action_btn"
										value="+加关注">
									<!-- 关注按钮 -->
								</p>
						</form>
	    			</s:else>
	    			
	    			
	    		</s:if>
	    		<s:elseif test="'follows'==type">
	    			
	    				
	    				<form action="buddy/remove" method="get"
								class="follow_form" id="remove_follow" style="">
								<div class="cancel-follow">
									<!-- 取消按钮 -->
									<span>已关注</span>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input class="cancel-follow-btn follow_action_btn"
										type="submit" value="取消">
								</div>
						 </form>
						 <form action="buddy/add" method="get"
								class="follow_form" id="add_follow" style="display: none;">
								<p>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input type="submit" class="follow-btn follow_action_btn"
										value="+加关注">
									<!-- 关注按钮 -->
								</p>
						</form>
	    			
	    			
	    			
	    			
	    		</s:elseif>
							
				<s:elseif test="'find'==type">
				
					<form action="buddy/remove" method="get"
								class="follow_form" id="remove_follow" style="<s:property value="both?'':'display:none'"/>">
								<div class="cancel-follow">
									<!-- 取消按钮 -->
									<span>已关注</span>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input class="cancel-follow-btn follow_action_btn"
										type="submit" value="取消">
								</div>
						 </form>
						 <form action="buddy/add" method="get"
								class="follow_form" id="add_follow" style="<s:property value="both?'display:none':''"/>">
								<p>
									<input type="hidden" name="target.id"
										value="<s:property value="id"/>">
									<input type="submit" class="follow-btn follow_action_btn"
										value="+加关注">
									<!-- 关注按钮 -->
								</p>
						</form>
				
				</s:elseif>			
							
							
							
							
							
							<p class="followers-num">
								<a href="buddy/fans?master.id=${id }" class="fans-num">${id }</a>粉丝
								<span><a href="bu">0</a>学生</span>
							</p>
							
							<p class="break-word">
								简介：<s:property value="photo"/><s:property value="both"/>
							</p>
						</div>
						<div class="cb clearfix"></div>
					</div>
  		 
  		 
  		 
  		 

   		 </s:iterator>
					
					
					
					
					

					
				
			
					<div class="page-turn">
					
					${pager.pagerHtml }
					</div>
				</div>
			</div>
			<br clear="all">
		</div>





		   <div style="position: absolute;width: 100%;bottom: 0px;">
		<jsp:include page="../skin/jsp/footer.jsp"></jsp:include>
		</div>
		<script type="text/javascript">
jQuery.global.init();</script>

		<script src="./skin/fans_files/relationship.js" type="text/javascript"
			charset="utf-8">
</script>
		<script src="./skin/fans_files/add_or_remove_follow.js"
			type="text/javascript" charset="utf-8">
</script>
		<script type="text/javascript" language="javascript">
$(function() {
	$("#content").isRelationship( {
		isFollow : true
	});
});
</script>

	</body>
</html>










